package cn.stylefeng.guns.modular.pandian.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.pandian.entity.PandianJihuaDetailed;
import cn.stylefeng.guns.modular.pandian.model.params.PandianJihuaDetailedParam;
import cn.stylefeng.guns.modular.pandian.model.result.PandianJihuaDetailedResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 盘点明细表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2022-01-07
 */
public interface PandianJihuaDetailedService extends IService<PandianJihuaDetailed> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    void add(PandianJihuaDetailedParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    void delete(PandianJihuaDetailedParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    void update(PandianJihuaDetailedParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    PandianJihuaDetailedResult findBySpec(PandianJihuaDetailedParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    List<PandianJihuaDetailedResult> findListBySpec(PandianJihuaDetailedParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2022-01-07
     */
     LayuiPageInfo findPageBySpec(PandianJihuaDetailedParam param,String condition);

	PandianJihuaDetailedResult sumByspec(PandianJihuaDetailedParam param);

	PandianJihuaDetailedResult findPanDianPositionBySpec(PandianJihuaDetailedParam pandianJihuaDetailedParam,
			Long userId, Long diskId);

	List<PandianJihuaDetailedResult> findPanDianGoodsListBySpec(PandianJihuaDetailedParam pandianJihuaDetailedParam,
			Long userId, Long diskId);

	List<PandianJihuaDetailedResult> findPanDianTrayListBySpec(PandianJihuaDetailedParam pandianJihuaDetailedParam,
			Long userId, Long diskId);

	List<PandianJihuaDetailedResult> findPanDianPositionListBySpec(PandianJihuaDetailedParam pandianJihuaDetailedParam,
			Long userId, Long diskId);

}
